<template>
  <div class="page">
    <div class="goback">
      <i class="el-icon-back" @click="goback"></i>
      <span @click="goback">返回首页</span>
    </div>
    <div class="text">
      <img :src="listDetail.images" alt="" />
      <p>{{ listDetail.textOne }}</p>
    </div>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  components: {},
  data() {
    return {
      listDetail: {},
    };
  },
  computed: mapState({
    type(state) {
      return state.app.type;
    },
  }),

  created() {
    this.listDetail = JSON.parse(localStorage.getItem("list"));
    console.log(localStorage.getItem("list"), this.listDetail);
  },

  updated() {
    // console.log(this.$route.params.data);
  },
  methods: {
    goback() {
      this.$router.push("/sportsManagement");
    },
  },
};
</script>

<style lang="less" scoped>
.page {
  width: calc(100% - 246px);
  height: 100%;
  box-sizing: border-box;
  text-align: left;
  background: url(~@/assets/images/矩形1拷贝3.png) no-repeat;
  background-size: 110% 100%;
  background-position: 80% 110%;
  .goback {
    padding: 20px;
    // cursor: pointer;
    i,
    span {
      cursor: pointer;
      margin-left: 4px;
    }
  }
  .text {
    width: 80%;
    font-size: 20px;
    height: calc(100% - 40px);
    margin: auto;
    img {
      width: 60%;
      height: 60%;
      margin: 2% 20%;
    }
    p {
      height: 26%;
      line-height: 40px;
      text-indent: 2em;
      overflow: auto;
    }
  }
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  ::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 5px;
    -webkit-box-shadow: inset005pxrgba(0, 0, 0, 0.2);
    background: #2a9dff;
  }

  ::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    -webkit-box-shadow: inset005pxrgba(0, 0, 0, 0.2);
    border-radius: 0;
    background: rgba(29, 25, 83, 0.5);
  }
}
</style>
